/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo909B;

/**
 *
 * @author Administrator
 */
public class Rectangle {
    private double width;
    private double height;
    public void setValue(double w,
            double h){
        width=w;
        height=h;
    }
    public double getArea(){
        return width*height;
    }
    public double getZhouchang(){
        return 2*(width+height);
    }
    
    
    
    
}
